package com.example.certificate.dto;

import com.example.certificate.entity.WakeFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Hao
 * @date 2021年12月03日 9:40
 */
@ApiModel(value = "完善用户信息")
@Data
public class PerfectInfoDto {

    @ApiModelProperty(value = "用户姓名")
    @NotBlank(message = "姓名不能为空", groups = {perfect.class})
    private String name;

    @ApiModelProperty(value = "用戶昵称")
    @NotNull(message = "用戶昵称不能为空" , groups = {perfect.class})
    private String nickname;

    @ApiModelProperty(value = "性别")
    @NotNull(message = "性别不能为空", groups = {perfect.class})
    private String gender;

    @ApiModelProperty(value = "头像")
    @NotBlank(message = "头像不能为空", groups = {perfect.class})
    private String image;

    @ApiModelProperty(value = "用户头像信息")
    private WakeFile wakeFile;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "用户手机号不能为空", groups = {perfect.class})
    private String phone;

    @ApiModelProperty(value = "邮箱")
    @NotBlank(message = "邮箱不能为空", groups = {perfect.class})
    private String email;

    @ApiModelProperty(value = "身份证号")
    @NotBlank(message = "身份证号不能为空", groups = {perfect.class})
    private String identityCard;

    public interface perfect{}
}
